package com.cskaoyan.utils;

import java.util.Random;

public class RandomCodeUtils {
    public static String getCode(){
        Random random = new Random();
        String code = "QWERTYUIOPLKJHGFDSAZXCVBNM1234567890";
        String res = "";
        for (int i = 0; i < 8; i++) {
            res+=code.charAt(random.nextInt(code.length()));
        }
        return res;
    }
}
